home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / LINUX / DMASCC.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  2KB  |  44 lines

  1. /*
  2.  * $Id: dmascc.h,v 1.1 1997/12/01 10:44:55 oe1kib Exp $
  3.  *
  4.  * Driver for high-speed SCC boards (those with DMA support)
  5.  * Copyright (C) 1997 Klaus Kudielka
  6.  *
  7.  * This program is free software; you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License as published by
  9.  * the Free Software Foundation; either version 2 of the License, or
  10.  * (at your option) any later version.
  11.  *
  12.  * This program is distributed in the hope that it will be useful,
  13.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  * GNU General Public License for more details.
  16.  *
  17.  * You should have received a copy of the GNU General Public License
  18.  * along with this program; if not, write to the Free Software
  19.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  */
  21.  
  22. /* Ioctls */
  23. #define SIOCGSCCPARAM SIOCDEVPRIVATE
  24. #define SIOCSSCCPARAM (SIOCDEVPRIVATE+1)
  25.  
  26. /* Frequency of timer 0 */
  27. #define TMR_0_HZ      25600
  28.  
  29. /* Configurable parameters */
  30. struct scc_param {
  31.   int pclk_hz;  /* frequency of BRG input (read-only - don't change) */
  32.   int brg_tc;   /* baud rate generator terminal count - BRG disabled if < 0 */
  33.   int nrzi;     /* 0 (nrz), 1 (nrzi) */
  34.   int clocks;   /* see documentation */
  35.   int txdelay;  /* [1/TMR_0_HZ] */
  36.   int txtime;   /* [1/HZ] */
  37.   int sqdelay;  /* [1/TMR_0_HZ] */
  38.   int waittime; /* [1/TMR_0_HZ] */
  39.   int slottime; /* [1/TMR_0_HZ] */
  40.   int persist;  /* 0 ... 255 */
  41.   int dma;      /* 1, 3 */
  42. };
  43.  
  44.